package com.xoa.service.equipment;



import com.xoa.util.LimsJson;

import javax.servlet.http.HttpServletRequest;

import java.util.Map;

public interface EquipmentScrappingService {

    //通用的查询所有设备报废申请并分页
    LimsJson showScraplog(HttpServletRequest request, Integer page, Integer limit, Map map, String column, String inptext);

    //查询设备报废申请下的报废设备
    LimsJson showScraplist(HttpServletRequest request, Integer scraplogId, Integer page, Integer limit);

    //单个删除报废申请与多条删除报废申请共用方法
    LimsJson delectScraplog(HttpServletRequest request, String ids);

    //单个删除设备与多条删除设备共用方法
    LimsJson delectScraplist(HttpServletRequest request, String ids);

    //添加设备报废申请和相关报废设备
    LimsJson addScraplogAndScraplist(HttpServletRequest request, String jsonlog, String jsonlist);

    //添加报废设备信息
    LimsJson addScraplist(HttpServletRequest request, Integer scraplogId, String jsonlist);

    //获取当前用户和用户所属的结算组织
    LimsJson showUserAndDept(HttpServletRequest request);

    //单条提交申请和多条提交申请共用方法
    LimsJson submitDate(HttpServletRequest request, String ids);

    //修改数据
    LimsJson modifyData(HttpServletRequest request, String jsonlog, Integer scraplogId);

    //通过设备类型id查询设备并分页（带状态判断）
    LimsJson findequipBydept(HttpServletRequest request, Integer equipTypeId, Integer page, Integer limit, Integer deptId);

     //设备报废申请 添加按钮 选择设备里的分页模糊查询
    LimsJson selectEquipment(String fieldName, String fieldValue, Integer page, Integer limit, Integer equipTypeId, Integer deptId);


}
